#ifndef IMAGEVIEWTOOL_H
#define IMAGEVIEWTOOL_H

#include <QDialog>
#include "timgwidget.h"

namespace Ui {
class ImageViewTool;
}

class ImageViewTool : public QDialog
{
    Q_OBJECT

public:
    explicit ImageViewTool(const QPixmap &pixmap, QDialog *parent = nullptr);
    ~ImageViewTool();

    void setButtonStyle(QPushButton* btn, const QColor& baseColor);
    void recvImgShowSignal(QImage image);

private slots:
    void on_btnClose_clicked();

    void on_btnRestart_clicked();

    void on_btnUpDownTurn_clicked();

    void on_btnBothTurn_clicked();

    void on_btnMagnify_clicked();

    void on_btnLessen_clicked();

private:
    Ui::ImageViewTool *ui;
    TImgWidget *m_Image;
    QGraphicsScene  *m_graphicsScene;
};

#endif // IMAGEVIEWTOOL_H
